(:: pragma bea:global-element-parameter parameter="$request1" element="ns0:request" location="../wsdl/cli_update_available_request.xsd" ::)
(:: pragma bea:global-element-return element="ns1:cli_get_info_req" location="../../../CL_ATG_ClienteConsultar_IMPL/Resource/wsdl/cli_get_info_request.xsd" ::)

declare namespace xf = "http://tempuri.org/CL_OSB_ClienteCrear_COMP/Resource/xq/Body2Atg2/";
declare namespace ns0 = "http://www.falabella.com/schemas/cli_update_available";
declare namespace ns1 = "http://www.falabella.com/schemas/cli_get_info_req";

declare function xf:Body2Atg2($request1 as element(ns0:request))
    as element(ns1:cli_get_info_req) {
        <ns1:cli_get_info_req>
            <ns1:timestamp>{ data($request1/ns0:cli_update_available/ns0:timestamp) }</ns1:timestamp>
            <ns1:client_id>
                <ns1:email>{ data($request1/ns0:cli_update_available/ns0:update_infos/ns0:update_info[1]/ns0:email) }</ns1:email>
                <ns1:rut>{ data($request1/ns0:cli_update_available/ns0:update_infos/ns0:update_info[1]/ns0:rut) }</ns1:rut>
            </ns1:client_id>
        </ns1:cli_get_info_req>
};

declare variable $request1 as element(ns0:request) external;

xf:Body2Atg2($request1)
